package main

import (
	"strconv"
	"github.com/boltdb/bolt"
	"github.com/xuri/excelize"
	"match-spider/util/boltdb"
	"strings"
	"fmt"
	"match-spider/util/format3"
	"math"
)

func avgOdds(data []float64 ) float64 {

	min:=float64(9999)
	max:=float64(-9999)
	total:=float64(0)
	i:=float64(0)
	for _,v:=range data  {
		if v<min{
			min=v
		}
		if v>max{
			max=v
		}
		total=total+v
		i++
	}
	return (total-max-min)/(i-2)
}


func checkAsia6(data string) (bool,float64,float64,float64,float64,float64,float64,float64,float64) {
	asiaSlice:=strings.Split(data,"!")

	//开盘公司至少10家
	size:=len(asiaSlice)
	if size<10{
		return false,float64(0),float64(0),float64(0),float64(0),float64(0),float64(0),float64(0),float64(0)
	}
	//初盘盘口-0.25~0.25
	i:=int(0)
	j:=int(0)
	m:=int(0)
	len:=int(0)
	//初盘均值
	s1:=float64(0)
	//终盘均值
	s2:=float64(0)
	oddsData:=make(map[string][]string)
	asia0:=make(map[string]int64)
	asia:=make(map[string]int64)
	ff1:=make([]float64,0)
	ff2:=make([]float64,0)
	ff3:=make([]float64,0)
	ff4:=make([]float64,0)
	for _,v:=range asiaSlice{
		asiaOdds:=strings.Split(v,"^")
		name:=asiaOdds[0]

		odds,_:=strconv.ParseFloat(asiaOdds[3],64)
		odds2,_:=strconv.ParseFloat(asiaOdds[6],64)
		p1,_:=strconv.ParseFloat(asiaOdds[2],64)
		p2,_:=strconv.ParseFloat(asiaOdds[4],64)
		p3,_:=strconv.ParseFloat(asiaOdds[5],64)
		p4,_:=strconv.ParseFloat(asiaOdds[7],64)

		//赔率处理
		ff1=append(ff1,p1)
		ff2=append(ff2,p2)
		ff3=append(ff3,p3)
		ff4=append(ff4,p4)

		s1=s1+odds
		s2=s2+odds2
		if math.Abs(odds)!=1&&math.Abs(odds)!=0.75&&math.Abs(odds)!=0.5{
			i++
		}
		if odds==odds2&&odds2==0{
			//初盘，终盘不能全都是0盘口不变化
			j++
		}
		if math.Abs(odds2)!=1&&math.Abs(odds2)!=0.75&&math.Abs(odds2)!=0.5{
			//终盘不在范围的去掉
			m++
		}
		//以终盘中大众盘口作为最终终盘口
		if asia[asiaOdds[6]]==0{
			asia[asiaOdds[6]]=1
		}else{
			asia[asiaOdds[6]]=asia[asiaOdds[6]]+1
		}
		if asia0[asiaOdds[3]]==0{
			asia0[asiaOdds[3]]=1
		}else{
			asia0[asiaOdds[3]]=asia0[asiaOdds[3]]+1
		}
		oddsData[name]=asiaOdds
		len++
	}
	//最多3家公司盘口不为0.25
	/*
	if i>3{
		return false,float64(0),float64(0),float64(0),float64(0)
	}
	/*if len-j<3{
		//在0盘口至少有3家公司变盘
		return false,float64(0),float64(0),float64(0),float64(0),nil
	}*/
	/*
		if m>3{
			return false,float64(0),float64(0),float64(0),float64(0)
		}*/

	//赔率不能太低，也不能太高
	/*ff:=format2.AsiaOdds(data)
	if ff[2]-ff[3]>0.12||ff[4]-ff[5]>0.12{
		return false,float64(0)
	}
	*/

	//初盘
	a:=float64(-9999)
	temp0:=int64(0)
	//终盘
	b:=float64(-9999)
	temp:=int64(0)
	for k,v:=range asia0{
		if v>temp0{
			temp0=v
			a,_=strconv.ParseFloat(k,64)

		}
	}
	for k,v:=range asia{
		if v>temp{
			temp=v
			b,_=strconv.ParseFloat(k,64)

		}
	}
	f1:=avgOdds(ff1)
	f2:=avgOdds(ff2)
	f3:=avgOdds(ff3)
	f4:=avgOdds(ff4)
	return true,a,b,s1/float64(len),s2/float64(len),f1,f2,f3,f4
}

func score6(fn func([]interface{},int)){
	i:=0
	//sss:= []string{"澳维女超","厄瓜乙","印尼超","孟加拉杯","巴卡德联","奥丁","巴沙甲","东南亚U19","斯卡冠联","巴拉后备","中协杯","爱U19","摩洛杯","英U23A","英足总杯","缅甸联","德乙","欧青U21","俄女杯","法丁A","瑞士丙","奥地利杯","波兰地杯","冰岛杯","波斯杯","波兰丙","英冠附","南非超附","京津冀杯","法丁D","瑞典南","瑞典3","捷U21C","阿乙","以乙附","美公开赛","荷青杯","巴伯联","墨西哥杯","丹麦超","匈乙","大洋女U19","澳威U22","巴皮甲","省港杯","阿拉冠","香港乙","日超杯","巴马甲","比青联","爱沙杯","俄乙东","瑞典杯","西乙附","白俄后备","威杯","哥伦乙附","新西兰杯","荷兰杯","马里甲","非洲女杯","英议南附","韩挑赛附","北爱超","阿塞超","克亚甲","欧女杯","意青杯","印班联","捷女甲","澳西女超","非青杯","沙滩世杯","斯伐乙西","科威甲","印度U18","英女足总","德女杯","巴高乙","泰超","澳昆女超","世女欧预","土女甲冠","英乙","印精英","挪威U19","意丙杯","芬乙C","西乙升","厄瓜甲秋","匈女甲附","黎超杯","美冠杯","亚洲杯","土女甲降","英U23杯","阿塞甲","捷克杯","马其乙东","印尼杯","埃及超盃","韩女联","摩尔杯","俄乙乌","澳首后备","以女甲","澳U20","美女职","冰超杯","欧罗巴杯","澳塔女超","法国杯","爱沙冬锦","阿尔巴甲A","英女超","澳南超附","澳首超附","罗联杯","哥伦杯","澳维女联","俄丙","捷U19附","女北美U20","乌克乙","香港甲","德国杯","德地区南","巴卡德联附","安道超附","SBS杯","丹女甲B","阿巴超杯","阿联酋杯","西室内足","罗U19","英乙附","卡后备","塞尔杯","玻利乙","爱足杯","伊朗超","阿塞U19","巴丙","自由杯","英甲","塞内联杯","西丙附","墨西联附","南亚杯U19","科U19","韩K联降","日皇杯","英依联甲","雷克女锦","日联杯","乌拉甲春","巴伊联","拉冬联杯","意乙","澳首甲","葡联杯","危地甲秋","洪都拉杯","沙青杯","德地区西","奥乙","乌拉甲","科威特联","意丙1B","乌干超","中超","英依杯","德U19北","丹麦乙降","巴圣杯","玻利甲秋","英青杯","苏甲附","印米佐超","德U17","波斯地区","全运男U20","女自由杯","土甲","智利乙","巴高联","巴帕拉甲","马其女杯","乌兹杯","洲际杯","芬女杯","阿联U21","西甲","乌后备","俄杯","哈萨甲","波女杯","法超杯","希腊超","欧联U19","韩K联","中甲","比乙季后赛晋级","科索沃超","丹后备1","德U19西","大洋冠U17","巴米乙","塞尔女甲","澳洲甲","亲王杯U21","萨尔U20","德地区北","丹后备4","德石州联","奥业余杯","捷丁","文莱超","中超跨年杯","印孟联","白俄乙","俄超附","亚室锦标","阿曼超杯","沙地青","波兰杯","南联杯","瑞典丙NL","波斯甲","苏乙附","中台联","丹女甲","女波罗杯","全运男足","比业余","英北甲","新加坡联","匈女甲冠","葡青U19","希腊超附","麒麟杯","比丙B","爱沙乙","瑞女联","荷女甲附","荷乙","法甲","欧冠杯","冰岛丙","荷甲附","德U17西","挪青杯","威乙","拉脱2L","摩洛乙","泰超杯","罗乙","芬甲","约盾杯","保超附","阿曼联附","新加坡杯","丹后备2","捷女杯","卡塔尔联","以丙","以超杯","塞浦超杯","女日联杯","危地甲秋附","冰岛丁","潍坊杯","法U19A","四国赛","泰联杯","欧青U19","危地甲春","芬K联","澳维青乙","波兰超降","约超联","伊拉联","西乙","立陶甲","瑞青甲南","爱联杯","马维超","女欧国杯","英南超","南亚女杯","哥斯乙","爱超","美乙附","欧联U23","亚青U19","圣青杯","土杯","奧U18","乌女联","澳西超","波女超","亲王杯","越女锦标","黎巴杯","高级银牌","巴希甲","德U19南","美职业附","日足联","中乙南","大运男足","澳维超附","巴塞阿甲","德女乙","巴伊联附","澳威北超","苏女超","澳首超","爱伦高杯","苏南联杯","加纳联","澳黄杯","全运女足","拉脱甲","非国锦标","阿乙曼特附","泰U19","沙地乙附","美金杯","保超降","巴克甲","女东南运","立陶女甲","比乙","英联杯","智利丙","叙杯","克亚杯","威联","比女超","斐济联","乌克超","加泰杯","印联杯","德乙升","马尔甲","澳门甲","巴马后备","冰岛锦B","乌克兰杯","巴青联","沙地联附","法U19D","荷U19","荷女甲","印果阿超","法女甲","阿联后备","香港超决","西超杯","英后备","沙世亚预","巴青杯","韩锦赛","英U23B","美青杯","不丹廷联","哥斯甲春","马里杯","西乙女联","南球杯","日职女甲","荷女杯","比超杯","加拿超附","阿卡斯杯","澳亚超","新西女超","新电信杯","马尔超联","尼日超","马来超","圣马杯","斯伐甲降","澳威U20","肯尼亚杯","科特超","墨西丙","加纳超","科青联","印度乙","澳布女超","智利杯","荷超杯","秘鲁甲","西甲U18","沙王杯","波女超冠","圣马甲附","菲律甲","立陶杯","约旦甲","比后备","斯伐乙东","英女北","阿尔杯","非洲预选","立陶甲冠","英挑杯","葡女杯","巴国诺联附","洪都甲春","俄甲","斯伐U19","女亚杯预","土伦杯","女亚冠U16","法U19杯","加夫杯","瑞士乙3","俄乙西","巴圣U17","荷乙附","土甲附","越U21锦","苏冠","斯伐丙","印金联","俄超","芬女超附","法U19B","巴林乙","瑞青甲北","智超杯","巴勒联","德U17南","新地联","美超","丹女甲A","威甲","沙地乙B","阿夏赛","乌拉U19","港菁杯","瑞典丙NG","亚青U23","瑞典丙OG","丹后备3","叙利亚甲","西丙3","意丁","泰甲","牙买超","阿尔U21","芬乙A","印度U19","澳威超附","西非杯","里约锦标","澳威超","直布杯","亚冠杯","哥斯甲附","摩尔乙","卢旺达联","意青联B","冰女联杯","德州联","爱沙女甲降","美女职附","巴波联","巴林超","德联杯","波青联附","沙地联","突尼乙","匈U19","冰女U19","巴巴挑杯","捷U21","巴圣女联","塞尔联","意女甲附","世青杯","苏联杯","意青锦杯","沙滩足","意丙1C","新西兰联附","土乙附","挪乙B","苏超","罗甲","瑞典丙SS","卢森杯","坦桑超","希腊杯","英女足","冰女超","北爱女杯","希丙","丹女杯","澳塔锦","挪甲","安道超冠","英南甲","乌干乙","意丙1附","丹麦乙B","英锦赛","冰岛锦","塞浦甲冠","委內超秋","哥伦乙秋","英议南","斯伐甲西","瑞典丙NS","奥丙附","瑞典女甲","黑山甲附","日女乙杯","喀麦隆杯","美加杯","澳南后备","里约锦标附","哈超杯","巴U17杯","沙滩杯","以乙南","沙优胜杯","北欧女U16","以U19","马来甲","马其杯","巴巴亚乙","厄后备","安道超杯","澳威甲","海地联","卡塔尔联降","塞浦U21","韩K联冠","南非超","澳昆超","英甲附","高級杯","哥伦乙春","塞尔U19","斯亚杯","葡青U17","希丙南","德甲","智利甲秋","挪女超","英U23附","葡甲附","德地区附","印桑杯","阿TB","韩挑赛","澳维亚","保女杯","阿丙曼特附","大洋女U17","阿丁曼特附","秘鲁甲秋","澳昆超附","法乙","阿美甲","爱沙女杯","巴西U19","委內超附","土丙B","芬兰杯","芬女超","巴圣锦标附","西室内足附","塞浦甲","科王杯","阿根廷杯","柬埔超","中国杯","土超杯","丹德兰联","阿甲","女欧U19","斯女杯","黎乙","德地区东北","保超","格鲁甲","印尼甲","赞比亚超","澳布杯","澳南超","北爱联杯","爱女联","巴帕乙","希腊U20","俄FNL杯","斯伐杯","德U19附","丹麦乙C","马其乙西","瑞典乙南","哈萨甲降","巴圣甲附","越南乙","法U19C","波兰甲","北爱女超","波女超附","瑞士乙2","澳黄超","西联杯","英郡杯","匈女甲","喀麦隆乙","克亚U19","澳维女超附","意室內足","意丙1A","日职联","美职业","东南亚U16","瑞青超附","印锡S联","巴丁","德女联","蓬卡诺杯","芬女K联","澳布后备","捷U19","阿尔杯U21","欧洲预选","爱尔高联","苏青联","土乙红","玻利甲附","巴巴青联","哈萨杯","塞浦女杯","斯里兰杯","乌克超冠","卡亲王杯","保U19","阿塞杯","萨尔超春","超联杯","希腊甲","约旦杯","丹麦U19","克亚乙","葡超","苏挑杯","英依超附","北美预选","罗女杯","土丙升","波兰甲附","冰岛U19","巴超联杯","澳西甲","日丙","吉尼斯杯","意超杯","丹女附","爱沙女甲冠","巴波联附","德青杯","洪都甲附","巴圣甲","突尼甲","巴伯联附","日女挑联","孟加拉联","英北超","雷克锦标","比女甲","维亚杯","白俄女杯","西丁","土超","意青联分1","韩足总","巴国诺联","巴圣锦标","日职乙","多塞纳杯","保超杯","葡青A1南","德电信杯","加尔联","英社盾","厄瓜甲春","威超附","女瑞典杯","北爱中联","阿曼杯","墨西U20","TIP杯","洪都甲秋","科超杯","波超杯","墨西联春","葡青U17附","巴帕联","澳门乙","苏冠附","瑞士超","澳维超","立陶甲降","马女联","波兰超冠","荷丁","摩尔女杯","黎巴嫩联","泰乙","多米联","韩挑K联","丹麦甲","新加后备","葡甲","墨西乙秋","哥超杯","乌克U21","马尔女甲","巴米联","喀麦隆甲","墨西乙附","巴西甲","葡青U17A","匈杯","瑞青超北","意丁杯","中乙北","西女甲","黑山乙","澳维女杯","委内杯","挪乙A","哥伦甲附","奥迪杯","奥女甲","巴帕联附","泰足总","巴室内足","威挑杯","西青盃","以女甲附","哈萨女超","西丙升","意丙1决","比甲","巴维杯","斯亚U19","巴巴多超","危地乙","南美预选","国际友谊","以杯","圣马甲","瑞U19杯","突尼杯","黎精英杯","以甲","意业余杯","法联杯","大冠杯","厄U19","萨尔杯","希腊女超","哥伦U19","伊朗杯","智利甲春","丹麦乙升","美乙","挪威杯","英南超附","芬青冠","安哥甲","中女超","加拿超","白俄超","欧沙联","澳西杯","土乙白","北美联","丹女超冠","苏女杯","澳西夜赛","奥丙西","以乙冠","巴圣青联","沙南美预","法罗杯","阿联U19","印西隆联","澳新南联","墨西乙秋附","瑞青甲附","罗女超","阿乙曼特","利比亚甲","澳维甲附","挪超杯","荷甲","巴巴亚联","德地区巴","大洋预选","马尔乙","南非洲杯","皇后杯","斯伐甲","日室内足","亚洲预选","港足总杯","比女盃","比甲附","巴亚甲","葡青U17B","意杯","巴拉甲春","澳布超","马来F联","美青U17","萨尔超附","委內超","拉脱杯","冰岛乙","葡超杯","澳足总","斯亚乙","以超附","酋长杯","澳维U21","德萨州联","保乙","室内足","巴米联附","加纳杯","埃塞超","西杯","瑞青超南","女欧U17","土丙C","波兰超","以女杯","英超","沙地乙A","法女杯","哥斯甲秋","匈甲","斯女联","英议联附","大运女足","威超","摩洛超","苏高联","葡青U17北","丹麦丙","南美超杯","菲律女足","土U21甲","荷后备","卡罗挑杯","斯伐甲冠","墨冠杯","芬女超冠","法丁C","土女甲","罗甲附","加拿冠","挪丙","乌拉乙","非青U17","白俄女超","非女锦U20","土丙A","格鲁杯","阿美杯","冰女杯","土U19联","乌干达杯","日地区赛","法丙升","芬兰U19","非洲杯","波兰丁","爱沙甲","瑞典乙北","澳洲甲附","苏丹杯","葡青U17南","亚协杯","阿曼苏杯","澳昆U20","秘鲁甲夏","亚五足","印尼锦","阿联邦A","新西超联","香港超附","澳维杯","丹女超","西女超","阿尔后备","澳布甲","安道超降","女挪威杯","澳女联","越青锦","非超杯","新西中联","波青联西","瑞士乙1","以甲附","秘鲁甲附","巴贝青杯","瑞典超","保超冠","美女超","瑞典丙附","巴格甲","瑞U19","爱沙丙","克U19","波青联东","澳布女杯","越南联","卢旺达杯","巴西乙","拉脱女联","中北美联","巴超高杯","巴东北超","西澳超U20","芬超","冰岛超","英南杯","格雷纳杯","女北美U17","奥丙中","阿后备","澳维后备","英议北附","西丙2","以青杯","非联杯","瑞士杯","委女超","阿美超","法乙升","约超盃","英北挑杯","沙王冠","委內乙","瑞典丙VG","中后赛","英依超","安道杯","丹麦U17","澳南女超","阿联杯","马足总","北爱超附","卡王储杯","南非甲","葡青A1冠","俄乙南","保丙","苏乙","科元首杯","马尔女杯","德超杯","直布超","葡青A1北","意甲","塞內超","芬U20","捷U21M","英议北","丹麦超冠","新加国联","巴拉甲秋","丹麦超降","丹女超降","新西北联","里约杯","冰岛甲","亚美超杯","英女杯","阿联酋超","希腊U19","丹麦杯","捷丙M","瑞女超盃","阿尔乙","罗丙","格鲁乙","巴高联附","里约锦标T.R决赛","香港超","苏总杯","日新杯","丹后备","马耳他杯","墨西U20春","阿尔巴杯","捷甲","西丙1","比青杯","澳西超附","女室世锦","墨西乙春","芬乙附","阿丁曼特","意女杯","匈女杯","冰女甲","埃及杯","萨尔后备","伊朗超杯","巴林杯","港后备","奥丙东","斯亚甲","超霸杯","新西联U20","西丙4","德丙","挪超","津巴超","马来杯","泰王杯","新西兰联","英女南","澳女联附","澳南甲","英乙U23","乌克超降","乌克甲降","阿女甲","匈女甲降","法丁B","比利时杯","匈丙","肯雅超","日职女乙","巴巴亚联附","埃及甲","伊朗甲","澳维甲","奥甲","俄青联","阿联酋甲","荷丙","女足四国","斯伐甲东","南美U17","中超杯","瑞典女乙","球会友谊","苏甲","塞浦杯","以乙北","爱沙女甲","墨超杯","中乙附","土U21超","越南甲","韩联盟","突尼乙降","意乙附","德乙降","埃塞杯","科威杯","以超","阿尔甲","乌兹甲","英北超附","澳首U20","俄女超","沙地甲","塞浦乙","巴王杯","哥伦女足","意青联A","德威法伦","澳黄后备","阿塞后","意青联附","女亚青冠","千里甲","格鲁U19","挪女甲","新西南联","非冠杯","巴西女锦","德国杯U19","俄室内足","罗杯","乌克U19","以图杯","COTIF杯","中美杯","德堡州联","乌克甲","丹麦U21","芬乙B","澳威杯","爱甲","乌兹超","布隆迪联","白俄杯","英议联","巴圣乙","巴利甲","马其甲","斐济杯","巴亚诺联","哥伦甲秋","世青U17","丹麦丁","捷女甲冠","日撒杯","澳青联","欧室锦标","塞浦甲降","塞尔超附","苏青乙","苏丹超","葡青A1附","捷乙","秘鲁乙","阿尔巴超","阿曼联","牙买杯","卢森甲","法罗甲","法国CFA","瑞士甲","越南杯","阿超杯","瑞典丁","墨西联秋","萨尔超秋","爱沙超杯","哈萨超","黑山甲","罗超杯","日皇后杯","南非联杯","日女锦标","法戊","比U21","黑山杯","日高U18杯","拉脱超","捷丙C","澳国超","里约青锦","乌拉甲秋","秘后备","库拉索联","北爱冠决","新西北后","葡青U17D","英冠","塞尔甲","澳塔超","日U18","欧青U17","瑞典甲","波罗杯","阿丙曼特","突尼乙附","立陶乙","瑞典女超","北爱冠","安道超","卡塔乙","塞尔超","捷女甲降","亚青U16","苏低联","巴勒杯","英南甲东","北欧U17","斯伐超","摩尔甲","卡塔杯","东南运","印度甲","葡冠","埃及超","澳足杯","乌超杯","北爱杯","哥伦甲春","丹麦超附","俄超杯","南美U20","马其乙","保杯","MTN8杯","白俄甲","冰联杯","巴拉乙","伯利兹超","俄乙中","瑞士U18","葡青U17C","英后杯","葡杯","尼加联","巴西杯","古巴锦","巴女甲","北爱后备","法丙","阿尔巴甲B","马统杯","东南青冠","意女甲","德U17北","欧青U21外","丹麦乙A",}

	boltdb.ScanTx("matchs-2017", func(tx *bolt.Tx) {

		tx.ForEach(func(name []byte, b *bolt.Bucket) error {
			b.ForEach(func(k, v []byte) error {
				content:=string(v)
				s:=strings.Split(content,"^")

				league:=s[1]
				startAt:=s[2]
				t1:=s[3]
				t2:=s[5]
				s1,_:=strconv.ParseFloat(s[4],64)
				s2,_:=strconv.ParseFloat(s[6],64)
				/*index:=-9999
				for k,v:=range sss{
					if v==league{
						index=k
						break
					}
				}*/
				boltdb.Get("asia-2017",league,string(k), func(asia string) {

					e ,a,b,_,_,_,_,_,_:= checkAsia6(asia)
					if (!e) {
						return
					}
					boltdb.Get("europe-2017", league, string(k), func(europe string) {
						boltdb.Get("lastmatch-2017", league, string(k), func(text string) {

							//去掉没有联赛的比赛
							if !strings.Contains(text, "总") || !strings.Contains(text, "BaseInfo") {
								return
							}

							y, ff := format3.FormatData(string(k), league, startAt, t1, t2, text,europe)

							if y {
								i++
								w := 0

								if (s1 - s2) <= 0 {
									w = 1
								}

								slice := []interface{}{string(k), w, a, b}
								for _, v := range ff {
									for _, vv := range v {
										slice = append(slice, vv)
									}

								}

								fmt.Println(i)
								fn(slice, i)
							}
						})
					})
				})

				return nil
			})
			return nil
		})

	})
	fmt.Println(i)

}

func main()  {
	e:=[]string{"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}
	xlsx := excelize.NewFile()

	categories := []string{

	}
	for k,v:=range categories{
		len:=int(k/26)
		s:=""
		if len>0{
			s+=e[len-1]+e[k%26]
		}else{
			s+=e[k%26]
		}

		xlsx.SetCellValue("Sheet1",s+"1", v)
	}
	score6(func(s []interface{}, i int) {
		for k,v:=range s{
			len:=int(k/26)
			s:=""
			if len>0{
				s+=e[len-1]+e[k%26]
			}else{
				s+=e[k%26]
			}
			xlsx.SetCellValue("Sheet1",s+strconv.Itoa(i+1), v)
		}
	})
	err := xlsx.SaveAs("./Workbook.xlsx")
	if err != nil {
		fmt.Println(err)
	}

}

